<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<!DOCTYPE>
<html>
<head>
<jsp:include page="../header.jsp">
	<jsp:param value="查看附件" name="title" />
</jsp:include>
</head>
<body>
	<fieldset>
		<legend>附件信息</legend>
		<ul>
			<c:forEach items="${attList}" var="att">
				<li>
				<a href="${att.filePath }">${att.fileName }</a>
				<%-- <c:choose>
					<c:when test="${fn:endsWith(att.fileName, '.png')}">
						<a href="${att.filePath }" target="_blank"> 
						<img style="max-width: 300px;" alt="${att.fileName }"
							src="${att.filePath }">
						</a>
					</c:when>
					<c:otherwise>
						<a href="${att.filePath }">${att.fileName }</a>
					</c:otherwise>
				</c:choose> --%>
				</li>
			</c:forEach>
		</ul>
	</fieldset>

</body>
</html>